/* EmailEntity.java:本类功能简介
 * 
 * Created on 2008-3-31
 * 
 * Copyright(C) 2008, by Ambow Research&Development Branch.
 * 
 * Original Author: 初始作者名称
 * Contributor(s): 参与者的名称，参与者名称2，
 * 
 * Changes 
 * -------
 * $Log: EmailEntity.java,v $
 * Revision 1.1  2008/04/01 06:12:46  dinghuaining
 * *** empty log message ***
 *
 */


package com.ambow.core.util.email;

import java.util.HashMap;
import java.util.Map;

import org.apache.commons.lang.builder.ToStringBuilder;

public class EmailEntity
{
	//发件人
	private String from;
	
	//收件人
	private String to;

	//邮件标题
	private String subject;

	//邮件内容
	private String text;

	//邮件附件
	Map<String, String> attachment = new HashMap<String, String>();

	//邮件图片
	Map<String, String> img = new HashMap<String, String>();


	public EmailEntity() 
	{
		super();
	}
	
	public EmailEntity(String from, String to, String subject, String text) 
	{
		super();
		this.from = from;
		this.to = to;
		this.subject = subject;
		this.text = text;
	}


	public String getTo()
	{
		return to;
	}

	public void setTo(String to)
	{
		this.to = to;
	}

	public String getSubject()
	{
		return subject;
	}

	public void setSubject(String subject)
	{
		this.subject = subject;
	}

	public String getText()
	{
		return text;
	}

	public void setText(String text)
	{
		this.text = text;
	}

	public Map<String, String> getAttachment()
	{
		return attachment;
	}

	public void setAttachment(Map<String, String> attachment)
	{
		this.attachment = attachment;
	}

	public Map<String, String> getImg()
	{
		return img;
	}

	public void setImg(Map<String, String> img)
	{
		this.img = img;
	}

	public String getFrom()
	{
		return from;
	}

	public void setFrom(String from)
	{
		this.from = from;
	}
	

	/**
     * 调用ToStringBuilder进行反射属性。
     */
    public String toString()
    { 
        return ToStringBuilder.reflectionToString(this);        
    }
}


